﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace MapTool
{
    /// <summary>
    /// Summary description for AdminPage
    /// </summary>
    public class AdminPage : System.Web.UI.Page
    {
        public AdminPage()
        {
            //
            // TODO: Add constructor logic here
            //
        }


        protected override void OnLoad(EventArgs e)
        {
            if (HttpContext.Current.Session["LoginUser"] == null)//session失效 或者没有登录
            {
                HttpContext.Current.Response.Redirect("Login.aspx", true);//首页
            }
            base.OnLoad(e);
        }
    }
}
